//引入react核心库
import React from 'react';
//引入ReactDOM-渲染
import ReactDOM from 'react-dom/client';
import App from './App';
//引入store
import store from "./redux/store";
//批量给所有文件容器传store
import {Provider} from 'react-redux';


const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
    <Provider store={store}>
        <App />
    </Provider>

);
// 使用了UI组件容器后，无需监测redux，render状态的改变
// store.subscribe(()=>{
//     root.render(<App />);
// })
